#pragma once


static inline bool dl_prio(int prio)
{
	return unlikely(prio < MAX_DL_PRIO);
}

static inline bool dl_time_before(u64 a, u64 b)
{
	return (s64)(a - b) < 0;
}

/*
 * Returns true if a task has a priority that belongs to DL class. PI-boosted
 * tasks will return true. Use dl_policy() to ignore PI-boosted tasks.
 */
static inline bool dl_task(struct task_struct *p)
{
    return dl_prio(p->prio);
}
